﻿using Cars.Console.Geometry;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Cars.Test.GeometryTest
{

    [TestClass]
    public class PointTest
    {

        [TestMethod]
        public void Sum_ZeroPoints_ZeroResult()
        {
            var c1 = new Coordinate(0, 0);
            var c2 = new Coordinate(0, 0);

            var result = c1 + c2;

            Assert.AreEqual(0, result.X);
            Assert.AreEqual(0, result.Y);
        }

        [TestMethod]
        public void Sum_RandomPoints_SumResult()
        {
            var c1 = new Coordinate(2, 4);
            var c2 = new Coordinate(3, 7);

            var result = c1 + c2;

            Assert.AreEqual(5, result.X);
            Assert.AreEqual(11, result.Y);
        }
    }

}
